<template>
	<view class="content">
		<!-- 第一部分列表 -->
		<view class="adminlist" v-for="item in adminList">
			<view class="background">
				<view class="adminMsg">
					<!-- 左 -->
					<view class="leftAdmin">
						<view class="topAdmin">
							<view class="user">
								角色:
							</view>
							<view class="span">
								库管
							</view>
						</view>
						<view class="topAdmin">
							<view class="user">
								权限:
							</view>
							<view class="span">
								权限列表
							</view>
						</view>
					</view>
					<!-- 右 -->
					<view class="chenge" @click="toAddrole('修改')">
						修改
					</view>
				</view>
			</view>
		</view>
		<!-- 按钮 -->
		<u-button class="buton" @click="toAddrole('添加')">添加角色</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				adminList:[{},{},{}]	
			}
		},
		methods:{
			toAddrole:function(e){
				console.log(e)
				uni.navigateTo({
					url:'Addrole'
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		height: 1242rpx;
		background: #F7F7F7;

		.adminlist {
			width: 750rpx;
			height: 144rpx;
			margin-top: 16rpx;
			.background {
				background-color: #FFFFFF;
				.adminMsg {
					width: 700rpx;
					height: 144rpx;
					margin: auto;
					display: flex;
					justify-content: space-between;
					.leftAdmin{
						.topAdmin{
							display: flex;
							line-height: 70rpx;
							.user{
								font-size: 26rpx;
								font-family: PingFang SC;
								font-weight: 500;
								color: #999999;
								margin-right: 31rpx;
							}
							.span{
								font-size: 26rpx;
								font-family: PingFang SC;
								font-weight: 500;
								color: #333333;
							}
						}
					}
					.chenge{
						width: 120rpx;
						height: 48rpx;
						background: #D8EFFF;
						border-radius: 8rpx;
						line-height: 48rpx;
						text-align: center;
						font-size: 24rpx;
						font-family: PingFang SC;
						font-weight: 500;
						color: #0199FE;
						margin: 48rpx 0;
					}
				}
			}
		}
	
		.buton{
			width: 670rpx;
			height: 80rpx;
			background: #0199FE;
			border-radius: 40rpx;
			font-size: 28rpx;
			font-family: PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			position: fixed;
			bottom: 24rpx;
			left: 40rpx;
		}
	}
</style>
